<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="GridCommodity.GridCommodityDeal"%>
<%@ page import="Order.OrderDeal"%>
<html>
  <head>
    <title>删除商品信息</title>
  </head>
  
  <body>
  <% 
  GridCommodityDeal GridCommodity=new GridCommodityDeal();
  String k=(String)request.getParameter("DealComID");
  String Path=(String)request.getParameter("Path");
  String realPath=request.getRealPath("/")+Path;  
  int m=GridCommodity.DeleteOrder(k);
  int n=GridCommodity.DeleteSpecials(k);
  out.print("<script>alert('"+realPath+"')</script>");
  if(GridCommodity.DeleteGridCommodity(k)==1&&GridCommodity.DelFile(realPath)==1)
  {
	
       out.print("<script>alert('删除成功 ')</script>");
       
  }
  else
  {
        out.print("<script>alert('删除失败  ')</script>");
        
  }
  
  %>
   <script type="text/javascript">
         
   </script>

  </body>
</html>
